Northwoods.GoSilverlight 2.1.1 Assembly
CheckLinkValid Method
See Also  Send Feedback
Northwoods.GoXam.Model Namespace > GraphLinksModel<NodeType,NodeKey,PortKey,LinkType> Class : CheckLinkValid Method

fromdata
a node key identifying the node data from which the link comes
fromparam
an optional value identifying which port on the "from" node the link is connected to
todata
a node key identify the node data to which the link goes
toparam
an optional value identifying which port on the "to" node the link is connected to
oldlinkdata
the original link data that might be modified, if ignoreexistinglink is true

Glossary Item Box

This predicate is true if adding a link between two nodes/ports would result in a validly structured graph.

Syntax

Visual Basic (Declaration) 
Protected Overridable Function CheckLinkValid( _
   ByVal fromdata As NodeType, _
   ByVal fromparam As PortKey, _
   ByVal todata As NodeType, _
   ByVal toparam As PortKey, _
   ByVal ignoreexistinglink As Boolean, _
   ByVal oldlinkdata As LinkType _
) As Boolean
C# 
protected virtual bool CheckLinkValid( 
   NodeType fromdata,
   PortKey fromparam,
   NodeType todata,
   PortKey toparam,
   bool ignoreexistinglink,
   LinkType oldlinkdata
)

Parameters

fromdata
a node key identifying the node data from which the link comes
fromparam
an optional value identifying which port on the "from" node the link is connected to
todata
a node key identify the node data to which the link goes
toparam
an optional value identifying which port on the "to" node the link is connected to
ignoreexistinglink
true if relinking; false if adding a new link
oldlinkdata
the original link data that might be modified, if ignoreexistinglink is true

Return Value

The behavior of this predicate depends on the value of ValidCycle and ValidUnconnectedLinks.

Requirements

See Also

© 2013 All Rights Reserved.